<template>
	<view class="content">
		<view class="order_one">
			<view class="order_one_left">
				<view class="order_one_xz">
					<view class="unpaid_sec" >
						<image :src="size? '../../../static/images/a9.png':'../../../static/images/a10.png'" @click="listDate" mode=""></image>
					</view>
					<view class="">
						<image src="../../../static/images/a7.png" mode=""></image>
					</view>
				</view>
				<view class="order_one_text">
					<view class="order_ones">
						<text>马来西亚猫山王榴莲1个装</text>
						<text class="price">￥269</text>
					</view>
					<view class="order_ones">
						<text class="gg">规格：1.8-2.2kg（液氮冷冻）</text>
						<text class="gg">X2</text>
					</view>
				</view>
			</view>
			<view class="order_one_left">
				<view class="order_one_xz">
					<view class="unpaid_sec" >
						<image :src="size0? '../../../static/images/a9.png':'../../../static/images/a10.png'" @click="showSize" mode=""></image>
					</view>
					<view class="">
						
					</view>
				</view>
				<image src="../../../static/images/a7.png" mode=""></image>
				<view class="order_one_text">
					<view class="order_ones">
						<text>马来西亚猫山王榴莲1个装</text>
						<text class="price">￥269</text>
					</view>
					<view class="order_ones">
						<text class="gg">规格：1.8-2.2kg（液氮冷冻）</text>
						<text class="gg">X2</text>
					</view>
				</view>
			</view>
			<view class="order_one_item">
				<view class="order_one_yf">
					<text>运费</text>
					<text class="gg">￥0.00</text>
				</view>
				<view class="order_one_yf">
					<text>备注</text>
					<text class="gg">无</text>
				</view>
			</view>
			<!-- <view class="order_one_sh">
				<view class="order_sh">
					<image :src="size1? '../../../static/images/a9.png':'../../../static/images/a10.png'" @click="change" mode=""></image>
					<text>全选</text>
				</view>
				<view class="order_qrs">
					<text>共计3件</text>
					<text class="zj"><text class="hj">合计</text>￥567.9</text>
				</view>
			</view> -->
		</view>
		<view class="order_one">
			<view class="order_one_left">
				<view class="order_one_xz">
				<!-- 	<view class="unpaid_sec" >
						<image :src="size? '../../../static/images/a9.png':'../../../static/images/a10.png'" @click="listDate" mode=""></image>
					</view> -->
<!-- 					<view class="">
						<image src="../../../static/images/a7.png" mode=""></image>
					</view> -->
				</view>
				<view class="order_one_text">
					<view class="order_ones">
						<text>马来西亚猫山王榴莲1个装</text>
						<text class="price">￥269</text>
					</view>
					<view class="order_ones">
						<text class="gg">规格：1.8-2.2kg（液氮冷冻）</text>
						<text class="gg">X2</text>
					</view>
				</view>
			</view>
			<view class="order_one_left">
				<view class="order_one_xz">
					<view class="unpaid_sec" >
						<image :src="size0? '../../../static/images/a9.png':'../../../static/images/a10.png'" @click="showSize" mode=""></image>
					</view>
					<view class="">
						
					</view>
				</view>
				<image src="../../../static/images/a7.png" mode=""></image>
				<view class="order_one_text">
					<view class="order_ones">
						<text>马来西亚猫山王榴莲1个装</text>
						<text class="price">￥269</text>
					</view>
					<view class="order_ones">
						<text class="gg">规格：1.8-2.2kg（液氮冷冻）</text>
						<text class="gg">X2</text>
					</view>
				</view>
			</view>
			<view class="order_one_item">
				<view class="order_one_yf">
					<text>运费</text>
					<text class="gg">￥0.00</text>
				</view>
				<view class="order_one_yf">
					<text>备注</text>
					<text class="gg">无</text>
				</view>
			</view>
			<view class="order_one_sh">
				<view class="order_sh">
					<image :src="size1? '../../../static/images/a9.png':'../../../static/images/a10.png'" @click="change" mode=""></image>
					<text>全选</text>
				</view>
				<view class="order_qrs">
					<text>共计3件</text>
					<text class="zj"><text class="hj">合计</text>￥567.9</text>
				</view>
			</view>
		</view>
		<view class="order_one">
			<view class="order_one_left">
				<view class="order_one_xz">
					<view class="unpaid_sec" >
						<image :src="size? '../../../static/images/a9.png':'../../../static/images/a10.png'" @click="listDate" mode=""></image>
					</view>
					<view class="">
						<image src="../../../static/images/a7.png" mode=""></image>
					</view>
				</view>
				<view class="order_one_text">
					<view class="order_ones">
						<text>马来西亚猫山王榴莲1个装</text>
						<text class="price">￥269</text>
					</view>
					<view class="order_ones">
						<text class="gg">规格：1.8-2.2kg（液氮冷冻）</text>
						<text class="gg">X2</text>
					</view>
				</view>
			</view>
			<view class="order_one_left">
				<view class="order_one_xz">
					<view class="unpaid_sec" >
						<image :src="size0? '../../../static/images/a9.png':'../../../static/images/a10.png'" @click="showSize" mode=""></image>
					</view>
					<view class="">
						
					</view>
				</view>
				<image src="../../../static/images/a7.png" mode=""></image>
				<view class="order_one_text">
					<view class="order_ones">
						<text>马来西亚猫山王榴莲1个装</text>
						<text class="price">￥269</text>
					</view>
					<view class="order_ones">
						<text class="gg">规格：1.8-2.2kg（液氮冷冻）</text>
						<text class="gg">X2</text>
					</view>
				</view>
			</view>
			<view class="order_one_item">
				<view class="order_one_yf">
					<text>运费</text>
					<text class="gg">￥0.00</text>
				</view>
				<view class="order_one_yf">
					<text>备注</text>
					<text class="gg">无</text>
				</view>
			</view>
			<view class="order_one_sh">
				<view class="order_sh">
					<image :src="size1? '../../../static/images/a9.png':'../../../static/images/a10.png'" @click="change" mode=""></image>
					<text>全选</text>
				</view>
				<view class="order_qrs">
					<text>共计3件</text>
					<text class="zj"><text class="hj">合计</text>￥567.9</text>
				</view>
			</view>
		</view>
		
		<view class="unpaid_bottom">
			<view class="unpaid_bottom_qx">
				<image :src="size2? '../../../static/images/a9.png':'../../../static/images/a10.png'" @click="change1" mode=""></image>
				<text>全选</text>
			</view>
			<view class="">
				<view class="order_qrs">
					<text>合计：59.8元</text>
					<text class="js">结算(2)</text>
				</view>
			</view>
		</view>	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				size: false,
				size0: false,
				size1:false,
				size2:false,
				goosList:[],
				info:{},
				order_status:''
			};
		},
		onLoad(options) {
		this.order_status = options.order_status
		},
		onShow() {
			this.Detailinfo()
		},
		methods:{
			
			Detailinfo(){
				this.$ajax(
				this.apiList.orderList,
				{
					status:this.order_status
				},'POST'
				).then(res=>{
					this.info = res.data
					this.goosList = res.data.goods
				console.log(res)
				})
			},
			
			
			listDate() {
				this.size = !this.size
			},
			showSize() {
				this.size0 = !this.size0
			},
			//全选
			change() {
				this.size1 = !this.size1
			},
			change1() {
				this.size2 = !this.size2
			},
			
		}
	}
</script>

<style lang="scss">
	.content{
		height: 100%;
		background: #f5f5f5;
		.order_one {
			margin: 20rpx;
			background: #fff;
			border-radius: 15rpx;
			.order_one_left {
				display: flex;
				padding: 20rpx;
				.order_one_xz{
					display: flex;
					align-items: center;
				}
				image {
					width: 128rpx;
					height: 128rpx;
				}
				.unpaid_sec{
					image{
						width: 32rpx;
						height: 32rpx;
						align-items: center;
					}
				}
				.order_one_text {
					width: 80%;
		
					font-size: 24rpx;
					color: #212121;
					font-weight: 400;
					font-family: PingFang SC;
		
					text {
						display: block;
					}
		
					.order_ones {
						display: flex;
						justify-content: space-between;
						width: 100%;
						padding-bottom: 20rpx;
					}
		
					.price {
						color: red;
					}
		
					.gg {
						color: #BDBDBD;
						font-size: 20rpx;
					}
				}
			}
		
			.order_one_yf {
				display: flex;
				justify-content: space-between;
				padding: 20rpx 20rpx 10rpx 20rpx;
		
				text {
					font-size: 20rpx;
				}
		
				.gg {
					color: #BDBDBD;
				}
			}
		
			.order_one_sh {
				display: flex;
				justify-content: space-between;
				padding: 20rpx 20rpx 10rpx 20rpx;
				align-items: center;
				.order_sh {
					display: flex;
					align-items: center;
					text {
						color:#212121;
						font-size: 24rpx;
						padding-left: 20rpx;
					}
					image{
						width: 32rpx;
						height: 32rpx;
					}
				}
		
				.order_qrs {
					text {
						color: #BDBDBD;
					}
		
					.zj {
						padding-left: 10rpx;
						font-size: 28rpx;
						color: red;
		
						.hj {
							font-size: 28rpx;
							color: #212121;
						}
					}
				}
		
				text {
					font-size: 24rpx;
				}
			}
		}
	
		.unpaid_bottom{
			position: fixed;
			bottom: -20rpx;
			width: 90%;
			z-index: 9999!important;
			margin: 20rpx;
			background:#FBFBFB;
			height: 88rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding:0 20rpx 0rpx 20rpx;
			.unpaid_bottom_qx{
				display: flex;
				align-items: center;
				text {
					color:#212121;
					font-size: 24rpx;
					padding-left: 20rpx;
				}
				image{
					width: 32rpx;
					height: 32rpx;
				}
			}
			.order_qrs{
				font-size: 28rpx;
				
				.js{
					background: #8BDD8E;
					width: 150rpx;
					padding: 12rpx;
					color: #fff;
					margin-left: 20rpx;
				}
			}
		}	
	}
</style>
